package demo.springboot.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/about")
public class About {

    // 跳转
    @GetMapping(value = "")
    public String getBookList(ModelMap map, Model model) {
        return "redirect:/about/profile";
    }

    // 1 - 企业文化
    @GetMapping(value = "/culture")
    public String CompanyCulture(ModelMap map, Model model) {
        return "about/CompanyCulture.html";
    }

    // 2 - 企业荣誉
    @GetMapping(value = "/honor")
    public String CompanyHonor(ModelMap map, Model model) {
        return "about/CompanyHonor.html";
    }

    // 3 - 企业简介
    @GetMapping(value = "/profile")
    public String CompanyProfile(ModelMap map, Model model) {
        return "about/CompanyProfile.html";
    }

    // 4 - 企业环境
    @GetMapping(value = "/exhibitionhalls")
    public String exhibitionhalls(ModelMap map, Model model) {
        return "about/exhibitionhalls.html";
    }

    // 5 - 品牌历程
    @GetMapping(value = "/brandhistory")
    public String brandHistory(ModelMap map, Model model) {
        return "about/brandHistory.html";
    }


}
